package com.tsc.design.strategyMode.example;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: chentl
 * @Date: 2025/09/17/20:56
 * @Description:
 */
public class AlipayPayment implements PaymentStrategy{

    private String account;

    public AlipayPayment(String account) {
        this.account = account;
    }

    @Override
    public void pay(int amount) {
        System.out.printf("交易金额："+ amount);
        System.out.printf("支付宝账号："+ account);
    }
}
